<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="static/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="static/css/H-ui.admin.css" />  
<link rel="stylesheet" type="text/css"
	href="static/css/Hui-iconfont/1.0.7/iconfont.css" />
<link rel="stylesheet" type="text/css"
	href="static/css/icheck/icheck.css" />
<link rel="stylesheet" type="text/css" href="static/css/skin.css"
	id="skin" />
<style type="text/css">
img{
	width:500px;
	height:500px;
	margin-left:200px;
}
table{
	border-color:blue;
	width:500px;
}
</style>
<base href="${basePath }">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查看面试记录</title>
</head>
<body>
<div>
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> <a href="staff?method=forward">首页
		</a><span class="c-gray en">&gt;</span> <a href="student?method=selectgroup">面试管理
		</a><span class="c-gray en">&gt;</span>
	</nav>
</div>
<div  id="all">
	
	<div>
		面试人：${name }
	</div>
	<c:if test="${empty list }">
		该学生暂无面试信息
	</c:if>

	<c:if test="${empty list }">
	<div>无附件</div>
	</c:if>
<c:if test="${not empty list }">
	<table class="table table-border table-bordered table-bg table-hover table-sort">
		<tr>
			<th>面试公司</th>
			<th>面试地址</th>
			<th>面试总结</th>
		</tr>

<c:forEach items="${list }" var="list">
		<tr>
			<th>${list.interviewCompany }</th>
			<th>${list.interviewAddress }</th>
			<th>${list.interviewSummary }</th>
		</tr>
</c:forEach>
</table>
	<fieldset>
<legend>附件信息</legend>
<ul>
<c:forEach items="${list}" var="a">
<li>
<c:choose>
<c:when test="${fn:endsWith(a.fileName, '.png')} "> 
<a href="${a.file_path }" target="_blank">
<img  alt="${a.fileName }" src="${a.filePath }">
</a>
</c:when>
<c:otherwise>
<a href="${a.filePath }" target="_blank">${a.fileName }</a>
</c:otherwise>
</c:choose>
</li>
</c:forEach>
</ul>
</fieldset>
</c:if>
</div>
</body>
</html>